﻿{include file="/public/header" /}
{include file="/public/navbar" /}
<div class="page">
    <div class="page__bd">
        <div class="weui-panel weui-panel_access">
            <div class="weui-panel__bd">
                <a aria-labelledby="js_p1m1_bd" href="javascript:" class="weui-media-box weui-media-box_appmsg">
                    <div aria-hidden="true" class="weui-media-box__hd" style="width:110px;height:110px;">
                        <img class="weui-media-box__thumb" src="/static/{$Think.config.app.APPSKEY ?? ''}/images/avatar.png" alt="">
                    </div>
                    <div aria-hidden="true" id="js_p1m1_bd" class="weui-media-box__bd">
                        <strong class="weui-media-box__title" style="line-height:2;">{$_G['partner']['nickname'] ?? ''}</strong>
                        <p class="weui-media-box__desc">{$_G['partner']['imobile'] ?? ''}</p>
                    </div>
                </a>
            </div>
        </div>

        <div class="weui-cells">
            <a aria-labelledby="js_cell_itl1_hd js_cell_itl1_bd js_cell_itl1_ft" class="weui-cell weui-cell_access weui-cell_example" href="/withdraw/add">
                <span class="weui-cell__hd" aria-hidden="true"><img src="/static/{$Think.config.app.APPSKEY ?? ''}/images/yong.png" alt="佣金" style="width: 20px; margin-right: 16px; display: block;"></span>
                <span class="weui-cell__bd" aria-hidden="true">
                    <span style="color:#fa9d3b;font-weight:bold;">￥{$b['amount'] ?? '0.00'}</span>
                </span>
                <span class="weui-cell__ft" aria-hidden="true">
                <!--{if ($b['wd'] ?? NULL)}-->
                    <i style="font-size:x-small;color:#fa9d3b;;">申请中</i>
                <!--{/if}-->
                    佣金提现
                </span>
            </a>
            <a aria-labelledby="js_cell_itl1_hd js_cell_itl1_bd js_cell_itl1_ft" class="weui-cell weui-cell_access weui-cell_example" href="/channel/index">
                <span class="weui-cell__hd" aria-hidden="true"><img src="/static/{$Think.config.app.APPSKEY ?? ''}/images/ktv.png" alt="KTV" style="width: 20px; margin-right: 16px; display: block;"></span>
                <span class="weui-cell__bd" aria-hidden="true">
                    <span style="color:#fa9d3b;font-weight:bold;">{$b['chntotal'] ?? 0}家</span>
                </span>
                <span class="weui-cell__ft" aria-hidden="true">我的门店</span>
            </a>
        </div>
        <div class="weui-cells">
            <!--{if ($b['txn'] ?? NULL)}-->
            {foreach $b['txn'] as $key => $row}
            <a class="weui-cell  weui-cell_access" href="javascript:">
                <span class="weui-cell__bd">
                    <span style="color:{$row['ctypecolor'] ?? ''};">
                        <!--{if ($row['ctype'] ?? 0) == 1}-->
                        +￥{$row['amount'] ?? ''}
                        <!--{elseif ($row['ctype'] ?? 0) == 2}-->
                        -￥{$row['amount'] ?? ''}
                        <!--{else}-->
                        ￥{$row['amount'] ?? ''}
                        <!--{/if}-->
                        <i style="font-size:x-small;color:gray">{$row['dateline'] ?? ''}</i>
                    </span>
                    <div class="weui-cell__desc">{$row['sysmsg'] ?? ''}</div>
                </span>
                <!--span class="weui-cell__ft" style="font-size:x-small;">详情</span-->
            </a>
            {/foreach}
            <!--{/if}-->
        </div>
    </div>
</div>
<script type="text/javascript">
$(document).ready(function (){
    $('div.weui-cells div[data-key="add"]').on('click',function(){
        window.location.href = "{$_G['_mc_']}/add";
    });
    $('div.weui-cells div[data-key="items"]').on('click',function(){
        if (!($(this).attr('data-id') || null)) return;
        window.location.href = "{$_G['_mc_']}/info/id/"+$(this).attr('data-id');
    });
});
</script>
{include file="/public/footer" /}